package com.ruoyi.project.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 设备对象 ts_equipment
 * 
 * @author tsxuwj
 * @date 2020-06-22
 */
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 品牌主键 */
    @Excel(name = "品牌主键")
    private Long brandId;

    /** 类型主键 */
    @Excel(name = "类型主键")
    private Long typeId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 型号名称 */
    @Excel(name = "型号名称")
    private String model;

    /** 参数名称 */
    @Excel(name = "参数名称")
    private String parameter;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String units;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 成本单价 */
    @Excel(name = "成本单价")
    private BigDecimal costPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setParameter(String parameter) 
    {
        this.parameter = parameter;
    }

    public String getParameter() 
    {
        return parameter;
    }
    public void setUnits(String units) 
    {
        this.units = units;
    }

    public String getUnits() 
    {
        return units;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setCostPrice(BigDecimal costPrice) 
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice() 
    {
        return costPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brandId", getBrandId())
            .append("typeId", getTypeId())
            .append("name", getName())
            .append("model", getModel())
            .append("parameter", getParameter())
            .append("units", getUnits())
            .append("price", getPrice())
            .append("costPrice", getCostPrice())
            .toString();
    }
}
